/**
 * 获取当前日期和星期
 * @return Object Date
 */
export default class {
    getDate() {
        const currentDate = new Date();
        const weekday = ['日', '一', '二', '三', '四', '五', '六'];
        return {
            year: currentDate.getFullYear(),
            month: currentDate.getMonth() + 1,
            day: currentDate.getDate(),
            weekday: weekday[currentDate.getDay()],
        };
    }
}
